package nl.weeaboo.sh.danmaku.commands;

import nl.weeaboo.sh.danmaku.ShotModel;
import nl.weeaboo.sh.danmaku.Spell;
import nl.weeaboo.sh.danmaku.SpellBook;
import nl.weeaboo.sh.danmaku.Universe;

public class TSpeed extends Spell {

	private float speed;
	
	public TSpeed(float speed) {
		this.speed = speed;
	}
	protected TSpeed(TSpeed t) {
		super(t);		
		speed = t.speed;
	}
	
	public TSpeed clone() {
		return new TSpeed(this);
	}
	
	@Override
	public void step(Universe u, SpellBook sb, ShotModel s) {
		s.setSpeed(speed);
		finish();
	}
	
}
